#include "debug.h"
#include "loginwidget.h"
#include "mainwidget.h"
#include "model/datacenter.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
#if TEST_SKIP_LOGIN
    MainWidget *w = MainWidget::getInstance();
    w->show();
#else
    LoginWidget *loginWidget = new LoginWidget(nullptr);
    loginWidget->show();
#endif

#if TEST_NETWORK
    model::DataCenter *dataCenter = model::DataCenter::getInstance();
    // dataCenter->ping();
#endif

    return a.exec();
}
